(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  ["pages/user/setting/user"], {
    "15e2": function (e, t, n) {
      "use strict";
      n.r(t);
      var r = n("480e"),
        a = n.n(r);
      for (var o in r) "default" !== o && function (e) {
        n.d(t, e, (function () {
          return r[e]
        }))
      }(o);
      t["default"] = a.a
    },
    "480e": function (e, t, n) {
      "use strict";
      (function (e) {
        Object.defineProperty(t, "__esModule", {
          value: !0
        }), t.default = void 0;
        var r = o(n("565b")),
          a = n("2f62");

        function o(e) {
          return e && e.__esModule ? e : {
            default: e
          }
        }

        function u(e, t) {
          var n = Object.keys(e);
          if (Object.getOwnPropertySymbols) {
            var r = Object.getOwnPropertySymbols(e);
            t && (r = r.filter((function (t) {
              return Object.getOwnPropertyDescriptor(e, t).enumerable
            }))), n.push.apply(n, r)
          }
          return n
        }

        function s(e) {
          for (var t = 1; t < arguments.length; t++) {
            var n = null != arguments[t] ? arguments[t] : {};
            t % 2 ? u(Object(n), !0).forEach((function (t) {
              c(e, t, n[t])
            })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u(Object(n)).forEach((function (t) {
              Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
            }))
          }
          return e
        }

        function c(e, t, n) {
          return t in e ? Object.defineProperty(e, t, {
            value: n,
            enumerable: !0,
            configurable: !0,
            writable: !0
          }) : e[t] = n, e
        }
        var i = {
          computed: s({}, (0, a.mapState)(["user"])),
          data: function () {
            return {
              gender: !0,
              genderdata: 0
            }
          },
          onLoad: function () {
            this.gender = 0 == this.$store.state.user.gender, this.genderdata = this.$store.state.user.gender
          },
          methods: {
            logout: function () {
              var t = this;
              this.$api.get({
                url: "/wanlshop/user/logout",
                data: {
                  client_id: e.getStorageSync("wanlshop:chat_client_id") ? e.getStorageSync("wanlshop:chat_client_id") : null
                },
                success: function (e) {
                  t.$store.dispatch("user/logout"), t.$wanlshop.msg("退出成功"), t.$wanlshop.back(1)
              
                  wx.reLaunch({
                    url: '/pages/wanlshop/index',
                  })

                }
              })
            },
            DateChange: function (e) {
              this.$store.state.user.birthday = e.detail.value
            },
            Gender: function (e) {
              1 == e.detail.value ? (this.gender = !0, this.genderdata = 0) : (this.gender = !1, this.genderdata = 1)
            },
            Avatar: function () {
              this.$wanlshop.to("/pages/user/portrait/portrait")
            },
            formSubmit: function (e) {
              var t = this,
                n = [{
                  name: "username",
                  checkType: "string",
                  checkRule: "3,32",
                  errorMsg: "用户名，至少3-32字符"
                }, {
                  name: "nickname",
                  checkType: "string",
                  checkRule: "3,32",
                  errorMsg: "昵称，至少3-32字符"
                }],
                a = e.detail.value,
                o = r.default.check(a, n);
              o ? this.$api.post({
                url: "/wanlshop/user/profile",
                data: a,
                success: function (e) {
                  t.$store.commit("user/setUserInfo", a), t.$wanlshop.msg("保存成功")
                }
              }) : this.$wanlshop.msg(r.default.error)
            }
          }
        };
        t.default = i
      }).call(this, n("543d")["default"])
    },
    "75c5": function (e, t, n) {
      "use strict";
      var r = n("7c79"),
        a = n.n(r);
      a.a
    },
    "773f": function (e, t, n) {
      "use strict";
      var r;
      n.d(t, "b", (function () {
        return a
      })), n.d(t, "c", (function () {
        return o
      })), n.d(t, "a", (function () {
        return r
      }));
      var a = function () {
          var e = this,
            t = e.$createElement,
            n = (e._self._c, e.$wanlshop.oss(e.user.avatar, 52, 52, 2, "avatar"));
          e.$mp.data = Object.assign({}, {
            $root: {
              g0: n
            }
          })
        },
        o = []
    },
    "7c79": function (e, t, n) {},
    "942f": function (e, t, n) {
      "use strict";
      (function (e) {
        n("77a0");
        r(n("66fd"));
        var t = r(n("f683"));

        function r(e) {
          return e && e.__esModule ? e : {
            default: e
          }
        }
        e(t.default)
      }).call(this, n("543d")["createPage"])
    },
    f683: function (e, t, n) {
      "use strict";
      n.r(t);
      var r = n("773f"),
        a = n("15e2");
      for (var o in a) "default" !== o && function (e) {
        n.d(t, e, (function () {
          return a[e]
        }))
      }(o);
      n("75c5");
      var u, s = n("f0c5"),
        c = Object(s["a"])(a["default"], r["b"], r["c"], !1, null, null, null, !1, r["a"], u);
      t["default"] = c.exports
    }
  },
  [
    ["942f", "common/runtime", "common/vendor"]
  ]
]);